// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 按需导入 Mint-UI 中的组件
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
import { Header, Swipe, SwipeItem, Button  } from 'mint-ui'

// 导入 MUI 的样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

// 导入 Swiper 的轮播图样式
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
import Axios from 'axios'

Vue.prototype.$axios = Axios;
Axios.defaults.baseURL = 'http://www.wwtliu.com';
Vue.use(Mint);
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);
Vue.use(VueAwesomeSwiper);
// Vue.use(VueLazyload);

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});
